//
//  MLASavePinVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/18.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLASavePinVC.h"
#import "MLASavePinPutInVC.h"
#import "MLASavePinPutOutVC.h"
#import "MLASavePinRepertoryVC.h"
#import "MLASavePinBillVC.h"
#import "MLASavePinSupplierVC.h"

@interface MLASavePinVC ()

@end

@implementation MLASavePinVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configTitle:@"我的进销存"];

    self.titlesArr = @[@"入库",@"出库",@"库存",@"票据凭证",@"供应商/采购商"];
    [self.tableView reloadData];
}


- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [super tableView:tableView didSelectRowAtIndexPath:indexPath];
    if (indexPath.row == 0) {
        CX_Log(@"入库");
        MLASavePinPutInVC *putInVC = [[MLASavePinPutInVC alloc] init];
        [self.navigationController pushViewController:putInVC animated:YES];
    } else if (indexPath.row == 1) {
        CX_Log(@"出库");
        MLASavePinPutOutVC *putOutVC = [[MLASavePinPutOutVC alloc] init];
        [self.navigationController pushViewController:putOutVC animated:YES];
    } else if (indexPath.row == 2) {
        CX_Log(@"库存");
        MLASavePinRepertoryVC *repertoryVC = [[MLASavePinRepertoryVC alloc] init];
        [self.navigationController pushViewController:repertoryVC animated:YES];
    } else if (indexPath.row == 3) {
        CX_Log(@"票据凭证");
        MLASavePinBillVC *billVC = [[MLASavePinBillVC alloc] init];
        [self.navigationController pushViewController:billVC animated:YES];
    } else if (indexPath.row == 4) {
        CX_Log(@"供应商/采购商");
        MLASavePinSupplierVC *supplierVC = [[MLASavePinSupplierVC alloc] init];
        [self.navigationController pushViewController:supplierVC animated:YES];
    }
}


@end
